package summer_vacation.zengguangchuan;

import java.util.Scanner;

/**作业22
 * Created by lenovo0 on 2015/8/25.
 */
public class Assignment_6 {
    public static void main(String[] args){
        System.out.print("请输入一个正整数： ");
        Scanner s=new Scanner(System.in);
        int i=s.nextInt();
        if(i%5==0&&i%7==0){
            System.out.println("YES");
        }else {
            System.out.println("NO");
        }
    }
}

